
{extend name="index/base" /}

{block name="menu"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        商家信息
    </div>
    <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li><a href="#">表单</a></li>
        <li class="am-active">用户信息</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 用户
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">

                    </div>
                </div>

            </div>
            <div class="tpl-block ">

                <div class="am-g tpl-amazeui-form">


                    <div class="am-u-sm-12 am-u-md-9">
                        <form class="am-form am-form-horizontal" enctype="multipart/form-data" method="post" action="/user/doedit">
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">管理员名</label>
                                <div class="am-u-sm-9">
                                    <input type="text" name="name" id="user-name" placeholder="管理员名 / Name" value="{$list.name}" >
                                    <input type="hidden" name="id" value="{$list.id}">
                                    <small>输入管理员名称</small>
                                </div>
                            </div>

                            <div class="am-form-group">
                                <label for="user-email" class="am-u-sm-3 am-form-label">用户名 /  username</label>
                                <div class="am-u-sm-9">
                                    <input type="text" name="username" id="user-email" placeholder="输入用户名"  value="{$list.username}">
                                    <small>用户名你懂得...</small>
                                </div>


                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <button type="submit" class="am-btn am-btn-primary">保存修改</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>

    </div>

    <script>

        $('.bbb-bb').click(function () {

            var data = $(this).attr('data-t');
            var _this = $(this);
            $.ajax({
                type:'delete',
                url:'gl/'+data,
                synsc:'true',
                success:function(aa){
                    if(aa){
                        _this.parents('tr').remove();
                        alert('删除成功');
                    }

                },
                error:function(){
                    alert('删除失败');
                }
            });

        });
    </script>
    {/block}